<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:set var="jpath" value="${pageContext.request.contextPath }"/>
<!DOCTYPE html >
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
<script type="text/javascript" src="${jpath}/static/FrontStatic/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="${jpath}/static/FrontStatic/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="${jpath}/static/FrontStatic/css/bootstrap.min.css"/>
<link href="${jpath}/static/FrontStatic/css/main.css" rel="stylesheet" type="text/css" />
<link href="${jpath}/static/FrontStatic/css/news.css" rel="stylesheet" type="text/css" />

<title>无标题文档</title>
</head>

<body>
	<div class="bg">
        <div class="row title">
            <div class="col-2" align="center">
                <img src="${jpath}/static/FrontStatic/image/back_1.png" id="back"/>
            </div> 
            <div class="col-8" align="center">诉求建议</div>
            <div class="col-2" align="center">
            </div>
        </div>
        <div class="row">
            <div class="col-12 nav_s">
            	<span state="2" class="nav_s_o">企业</span>
            	<span state="1">金融</span>
            </div>
        </div>
        <div id="content">
        </div>
    </div>
<script src="${jpath}/js/system_plugins.js"></script>
<script>
	
	var jpath="${jpath}";
	$(function(){
		$("#back").click(function(){
			location.href="${jpath}/front/index";
		}); 
		
		var colM = 	[{
						name:"UsersId"
					},{
						name:"AttachmentPath"
					},{
						name:"EnterpriseName"
					},{
						name:"CompanyProfile"
					},{
						name:"RegistrationTime"
					}];
		
		var state=$(".nav_s span").eq(0).attr("state");
		var params={pageNum:1,pageSize:3,ClassId:state};
		$("#content").loadInfo(colM,params,"${jpath}/frontSuggest/SuggestContent",jpath,false);
		
        $(".nav_s span").click(function(){
            var _this=$(this);
            $(".nav_s span").each(function(index,e){
                $(e).removeClass("nav_s_o");
            });
            _this.addClass("nav_s_o");
			var sta=_this.attr("state");
			var par={pageNum:1,pageSize:3,ClassId:sta};
			$("#content").loadInfo(colM,par,"${jpath}/frontSuggest/SuggestContent",jpath,false);
        });
        
        $("body").on("click",".news_con",function(){
			var id=$(this).attr("id");
			location.href="${jpath}/frontSuggest/Info?UsersId="+id;
 		});
    });
</script>
</body>
</html>
 